//
//  UIView+Function.m
//  KKCategoryKit
//
//  Created by liaozhenming on 16/6/7.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import "UIView+Function.h"

@implementation UIView (Function)

- (void)kk_cornerRadius:(CGFloat)radius {
    self.layer.cornerRadius = radius;
    self.layer.masksToBounds = YES;
}

- (void)kk_borderColor:(UIColor*)color width:(CGFloat)width {
    self.layer.borderColor = color.CGColor;
    self.layer.borderWidth = width;
    self.layer.masksToBounds = YES;
}
@end
